<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/js/jquery.slim.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>

    <script src="/js/popper.min.js"></script>
    <script src="/js/store2.js"></script>
    <script src="/js/vue.js"></script>
    <script src="/js/vue-resource.min.js"></script>

    <script src="/js/init.js"></script>
    <style>
        html,
        body {
            height: 100%;
        }

        body {
            display: -ms-flexbox;
            display: -webkit-box;
            display: flex;
            -ms-flex-align: center;
            -ms-flex-pack: center;
            -webkit-box-align: center;
            align-items: center;
            -webkit-box-pack: center;
            justify-content: center;
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #f5f5f5;
        }

        .form-signin {
            width: 100%;
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }

        .form-signin .checkbox {
            font-weight: 400;
        }

        .form-signin .form-control {
            position: relative;
            box-sizing: border-box;
            height: auto;
            padding: 10px;
            font-size: 16px;
        }

        .form-signin .form-control:focus {
            z-index: 2;
        }

        .form-signin input[type="email"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

    </style>
</head>
<body class="text-center">
<div id="login" class="form-signin">

    <h5 class="h5 mb-5 font-weight-normal">请登录,测试账号:test/test</h5>
    <label class="sr-only">用户名</label>
    <input type="text" id="inputname" class="form-control" v-model="name"  placeholder="用户名" required autofocus>
    <label class="sr-only">密码</label>
    <input type="password" id="inputpassword" v-model="password" class="form-control" placeholder="密码" required>

    <button class="btn btn-lg btn-primary btn-block" v-on:click="login">登录</button>

</div>

<script type="text/javascript">
    new Vue({
        el: '#login',
        data: {
            name:"",
            password:""
        },
        methods: {
            login: function () {


            var b=   login(this.name,this.password);
               if(b==true)
               {

               }
            }
        }
    });

</script>
</body>
</html>